<html>
<head>
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/jquery.print.js"></script>  
<script type="text/javascript">
$(document).ready(function(){
 //printable function for direct print
  $( ".printable" ).print();
});
</script>
</head>
<a href="proformaList.php"><font color="red">Back</font></a>  
<body>
<div class="printable"> 
<table width="95%" border='1' cellpadding='1' cellspacing='0' align='center' style="font-size:12px;">
<tr>
  <td align="center" colspan="5"> 
    <font style="font-size: 16px"><b>Proforma Detail</b></font>
  </td>
</tr>
<tr>
	<td align="left" width="12%"><b>Challan No : </b></td>
	<td>{$productMArray.proformaMasterId}</td>
	<td align="right" colspan="2"><b>Date :</b></td>
	<td>{$productMArray.date}</td>
</tr>
<tr>
	<td align="left"><b>Customer</b></td>
	<td colspan="4">{$productMArray.companyName}</td>
</tr>
<tr>
	<td align="center"><b>SR No.</b></td>
	<td align="center"><b>Product</b></td>
	<td align="center"><b>Quantity</b></td>
	<td align="right"><b>Rate</b></td>
	<td align="right"><b>Amount</b></td>
</tr>
{section name=sec loop=$productDArray}
<tr>
	<td align="center">{$smarty.section.sec.rownum}</td>
	<td align="left">{$productDArray[sec].itemName}</td>
	<td align="center">{$productDArray[sec].qty}</td>
	<td align="right">{$productDArray[sec].unitRate}</td>
	<td align="right">{$productDArray[sec].amount}</td>
</tr>
{/section}
<tr>
	<td align="right" colspan="4"><b>Total :</b></td>
	<td align="right">{$productMArray.totalAmt}</td>
</tr>
<tr>
	<td align="center"><b>Remarks :</b></td>
	<td align="left" colspan="4">{$productMArray.notes}</td>
</tr>
</table>
</div>
</body>
</html>